<template>
    <div>
      <div class="div1"><input type="text" v-model="form.phone"></div>
      <div class="div2"><input type="password" v-model="form.pass"></div>
      <div>
        <button @click="goLogin">login</button>
      </div>
    </div>
</template>

<script>
  export default {
    name: 'login',
    data () {
      return {
        form: {
          phone: '',
          pass: ''
        }
      }
    },
    methods: {
      goLogin () {
        this.$http.post('/login/loginForm', this.form).then(res => {

        })
      }
    }
  }
</script>

<style scoped>
div{
  padding: 20px;
}
  input{
    padding: 10px;
    font-size: 18px;
  }
</style>
